package com.zhiyou.crowdfunding.service.impl;

import com.zhiyou.crowdfunding.bean.Projectstype;
import com.zhiyou.crowdfunding.mapper.ProjectstypeMapper;
import com.zhiyou.crowdfunding.service.ProjectstypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jyf
 * @since 2022-05-27
 */
@Service
public class ProjectstypeServiceImpl implements ProjectstypeService {

    @Autowired
    private ProjectstypeMapper projectstypeMapper;

    /**
     * 查询所有项目类型
     * @return
     */
    @Override
    public List<Projectstype> getAllProjectstype() {
        return projectstypeMapper.selectList(null);
    }
}
